// resources/js/admin/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Dashboard from '../views/Dashboard.vue';
import Users from '../views/Users.vue';

const routes = [
  { path: '/admin', redirect: '/admin/dashboard' },
  { path: '/admin/dashboard', component: Dashboard },
  { path: '/admin/users', component: Users },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;